package com.bw.demo.detail

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.bw.demo.R
import com.bw.demo.base.BaseActivity
import com.bw.demo.databinding.ActivityDetailBinding
import com.shuyu.gsyvideoplayer.utils.GSYVideoType

class DetailActivity : BaseActivity<ActivityDetailBinding>() {

    override fun initData() {
        val video = intent.getStringExtra("video")
        val name = intent.getStringExtra("name")
        val title = intent.getStringExtra("title")
        mDataBinding.detailGsy.setUp(video,true,"")
        mDataBinding.detailGsy.startPlayLogic()
        GSYVideoType.setShowType(GSYVideoType.SCREEN_MATCH_FULL)
        mDataBinding.tvDetailDesc.setText(title)
        mDataBinding.tvDetailUser.setText(name)
    }

    override fun initView() {

    }

    override fun getLyoutId(): Int {
        return R.layout.activity_detail
    }

}